﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lyh.Train.Recognizer.UUWise
{
    public class UUErrorCode
    {
        private static IDictionary<string, string> Errors = new Dictionary<string, string>
        {
            {"-1001","连接失败"},
            {"-1002","网络传输超时"},
            {"-1003","文件访问失败"},
            {"-1004","图像内存流无效"},
            {"-1005","服务器返回内容错误"},
            {"-1006","服务器状态错误"},
            {"-1007","内存分配失败"},
            {"-1008","没有取到验证码结果，返回此值指示codeID已返回"},
            {"-1009","此时不允许进行该操作"},
            {"-1010","图片过大，限制10MB"},
	        {"-1","软件ID或KEY无效或者用户名为空或密码为空"},
	        {"-2","用户不存在"},
	        {"-3","密码错误"},
	        {"-4","账户被锁定"},
	        {"-5","非法登录"},
	        {"-6","用户点数不足，请及时充值"},
	        {"-8","系统维护中"},
	        {"-9","其他"},
	        {"-12 ","绑定软件了软件账户"},
	        {"-13","绑定了作者账户"}
        };

        public static string GetErrorText(string errorCode)
        {
            return Errors.ContainsKey(errorCode) ? Errors[errorCode] : errorCode.ToString();
        }

    }
}
